<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<title>Clipbord Example</title>
	<link rel="stylesheet" type="text/css" href="../../resources/css/ext-all.css" />
  
    <script type="text/javascript" src="../../ext-all.js"></script>
	<script type="text/javascript" src="../../src/util/Clipboard.js"></script>
	
	 
</head>
<body>
	<input type="text" id="abcd"/>
    <button onclick="abc();">复制</button>
    <script type="text/javascript"> 
    function abc(){
        var val = document.getElementById('abcd').value;
        console.log(val);
        Ext.util.Clipboard.copy(val);
    }
    </script>
</body>
</html>